package com.chinasoft.maysham.manager.model;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.List;

@EqualsAndHashCode(callSuper = true)
@Document
@Data
public class ProjectUser extends BaseModel {

    public ProjectUser(String userId, String projectId, boolean owner) {
        this.userId = userId;
        this.projectId = projectId;
        this.owner = owner;
    }

    private String userId;
    private String projectId;
    private List<String> roleIds;
    private boolean owner;
}
